﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WowParserLib
{
    public class EventIdProvider: IEventIdProvider
    {
        #region IEventIdProvider Members
        private static object syncRoot = new object();
        private int currentEventId = 0;

        public int GetEventId()
        {
            lock (syncRoot)
            {
                return currentEventId++;
            }
        }

        #endregion
    }
}
